<html>
<head>
<title>Solic</title>
</head>
<!-- #include file="includes/styles.css" -->
<!-- #include file="includes/conn.asp" -->
<body>
<table width="780" border="0" cellspacing="0" cellpadding="1"><tr><td>
  <br>
  <br>
  <br>
  <br>
<% If request("senha") = "" then %>
<form action="acessoalmox.asp" method="post" name="frmLogin" id="frmLogin">
  <table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr> 
      <td height="22" bgcolor="#C991BF"> <div align="center"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">INFORME A SENHA DO ALMOXARIFE </font></div></td>
    </tr>
    <tr valign="middle"> 
      <td height="40" align="center"> <input type="password" name="senha"></td>
    </tr>
    <tr> 
      <td height="19" colspan="3" align="center" bgcolor="#552C73" onClick="document.frmLogin.submit();" onMouseOver="m_over(this,'#999999');" onMouseOut="m_out(this,'#552C73');"> 
        <font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">ENTRAR</font></td>
    </tr>
  </table>
</form>
<% else 
		If request("senha") <> "" and request("senha") = "estoque" then
'			set rsUsuario = server.createObject("adodb.recordset")
'			consulta = "Select USID,USSETOR from usuario Where (USTIPO = 'X')"
'			rsUsuario.open consulta,conn,3,3
'			Session("eUsuario") = rsUsuario("USID")
			Session("eUsuario") = 0
'			Session("eSetor") = rsUsuario("USSETOR")
			Session("eSetor") = 0
			Session("eTipo") = "X"
			Session("eLogado") = true
'			rsUsuario.close
'			set rsUsuario=nothing
'			conn.close
'			set conn=nothing
			response.Redirect("principal.asp")
		end if
%> 
	<br>
	<table width="250" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr> 
    	<td height="30" bgcolor="#C991BF"> 
			<div align="center"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">ATEN&Ccedil;&Atilde;O</font></div></td>
	</tr>
	<tr> 
    	<td height="1"></td>
	</tr>
	<tr> 
		<td height="50"> 
			<div align="center"><font color="#552C73" size="2" face="Verdana, Arial, Helvetica, sans-serif">Senha inv&aacute;lida</font><font color="#552C73" size="2" face="Verdana, Arial, Helvetica, sans-serif">!</font></div></td>
	</tr>
	<tr> 
    	<td height="1"></td>
	</tr>
	<tr> 
    	<td height="20" bgcolor="#552C73" onClick="location.href='acessoalmox.asp';" onMouseOut="m_out(this,'#552C73');" onMouseOver="m_over(this,'#999999');"> 
			<div align="center"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">VOLTAR</font></div></td>
	</tr>
	</table>
<%
	end if
%>
</td></tr></table>
</body>
</html>